Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix several issues with CreateCopyOfAsync extension interface and method #72

Merged
merged 6 commits into from
Sep 7, 2024

Conversation

Arlodotexe
Copy link
Owner

@Arlodotexe Arlodotexe commented Sep 1, 2024

  • Closes CreateCopyOfAsync & MoveFromAsync slowpaths do not account for streams without ability to set length #70
  • Fixed inconsistent behavior when calling CreateCopyOfAsync from interface instead of extension method. The overwrite: false throw check now happens inside of CreateCopyOfFallbackAsync.
  • Fix inconsistent CreateCopyOfAsync behavior in SystemFolder when a file exist and overwrite: false is given.
  • Fixed an issue where calling MemoryFile.OpenStreamAsync wouldn't return a stream with a 0 position, and would keep position the same even after outer disposal by other callers.
  • Renamed test class names to include most derived tested type.
  • Update tests to .NET 8

…face instead of extension method. The overwrite: false throw check now happens inside of CreateCopyOfFallbackAsync.
…rn a stream with a 0 position, and would keep position the same even after outer disposal by other callers.
@Arlodotexe Arlodotexe changed the title fix/extensions/copy Fix several issues with CreateCopyOfAsync extension interface and method Sep 1, 2024
@Arlodotexe Arlodotexe merged commit 18fb835 into main Sep 7, 2024
1 check passed
@Arlodotexe Arlodotexe deleted the fix/extensions/copy branch September 7, 2024 00:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CreateCopyOfAsync & MoveFromAsync slowpaths do not account for streams without ability to set length
1 participant